import request from '@/utils/request'

export const list = params =>
  request({
    url: '/system/approve/list',
    method: 'get',
    params: params
  })

// 新增分组
export const addApproveGroup = params =>
  request({
    url: '/system/approveGroup',
    method: 'post',
    data: params
  })

export const bePost = params =>
  request({
    url: '/admin/esStaff/bePost',
    method: 'post',
    params: params
  })

// 流程停用
export const startOrStop = params =>
  request({
    url: '/admin/esApprove/startOrStop',
    method: 'post',
    params: params
  })
// 流程添加
export const approveAdd = params =>
  request({
    url: '/admin/esApprove/add',
    method: 'post',
    params: params
  })
// 流程更新
export const approveUpdate = params =>
  request({
    url: '/admin/esApprove/upd',
    method: 'post',
    params: params
  })
// 流程删除
export const approvedel = params =>
  request({
    url: '/admin/esApprove/del',
    method: 'post',
    params: params
  })
export const particulars = params =>
  request({
    url: '/admin/esApprove/particulars',
    method: 'post',
    params: params
  })
